package com.site_assembly.apiImpl;

import com.service.RecycleApiService;
import com.site_assembly.common.GetIdUtil;
import com.util.Result;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "子站点端（骑手认证）接口", description = "提供子站点（骑手认证）相关的 Rest API")
public class RecycleApiImpl implements RecycleApiService {

    @Resource
    private GetIdUtil getIdUtil;

    @Override
    @ApiOperation("分页查询认证状态骑手")
    public Result findAllRecycleByPageAndRecyclerApproveState(@ApiParam(name = "recyclerApproveState", value = "认证状态") String recyclerApproveState,
                                                              @ApiParam(name = "current", value = "当前页", example = "1") Integer current,
                                                              @ApiParam(name = "pageSize", value = "页容量", example = "1") Integer pageSize) {
        Integer siteId = getIdUtil.getId();
        return null;
    }

    @Override
    @ApiOperation("修改通过或不通过骑手认证")
    @ApiResponses({@ApiResponse(code = 20000, message = "骑手认证成功"), @ApiResponse(code = 40000, message = "骑手认证失败")})
    public Result setRecycleOfRecyclerApproveStateByRecycleId(@ApiParam(name = "recyclerApproveState", value = "认证状态") String recyclerApproveState,
                                                              @ApiParam(name = "recycleId", value = "骑手Id", example = "1") Integer recycleId) {
        return null;
    }
}
